package com.ipzoe.app.convert;

import com.ipzoe.app.dto.OrderDTO;
import com.ipzoe.app.dto.OrderDetailDTO;
import com.ipzoe.oms.domain.Order;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface OrderConvert {

    OrderConvert INSTANCE = Mappers.getMapper(OrderConvert.class);

    List<OrderDTO> convert(List<Order> orderList);

    OrderDetailDTO convert(Order order);
}
